package com.ys.web.sys.black;

import com.ys.base.BaseDao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface BlackMapper extends BaseDao {

    @Insert("insert into black(phone,ip) value(#{phone},#{ip})")
    void addPhone(String phone,String ip);

    @Select("select count(phone) from black where ip=#{ip}")
    int countPhoneByIp(String ip);
}
